class AuthController < ApplicationController
  def index
  end

  def login
    if request.post?
      @current_member = Member.find_by_username_and_passwd(params[:username], params[:passwd])
      unless @current_member.nil?
        session[:user_id]=@current_member.id
        redirect_to :controller => 'project'          
      end
    end
  end

  def logout
    session[:user_id]=@current_user=nil
  end
end